package org.easySpace.controller;

import org.easySpace.common.aop.ControllerPrint;
import org.easySpace.common.handler.ResponseDto;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lzh@aginome.com
 * @description
 * @date 2023/10/31
 **/

@RestController
public class HealthController {

    /**
     * 健康检查
     * @return "health"信息
     */
    @GetMapping("checkHealth")
    @ControllerPrint
    public ResponseDto getHealth() {
        return ResponseDto.ok("health");
    }


}
